<?php

	$arr = array(1, 2, 3);
	$br = "<br/><br/>";
	
	echo '$arr[0]:'.$arr[0].$br;
	
	array_push($arr, 4);
	echo '$arr:'.print_r($arr, true).$br;
	
	array_pop($arr);
	echo '$arr:'.print_r($arr, true).$br;
	
	array_push($arr, 4);
	echo '$arr:'.print_r($arr, true).$br;
	
	array_shift($arr);
	echo '$arr:'.print_r($arr, true).$br;
	
	$arr[3] = 5;
	echo '$arr:'.print_r($arr, true).$br;
?>